#include "GASU.h"
#include "global.h"

int main()
{
    // 启动就直接开始所有操作
    GASU gasu;
    gasu.init();
    gasu.start();

    system("clear");
    // 运行过程中可以进行输入操作
    while (true)
    {
        std::string param;
        std::cout << "GASU: > ";
        std::getline(std::cin, param);
        if (param.compare(GASUCONFIG::STOP) == 0)
        {
            gasu.stop();
            break;
        }
        else
        {
            std::cout << "invalid command" << std::endl;
        }
    }
    system("clear");
}